package soul.service;

import soul.entity.Org;
import soul.mapper.OrgDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2016/11/27.
 */
@Service
public class OrgService {
    @Autowired
    private OrgDao orgDao;

    @Autowired
    private UserService userService;

    public List<Org> select(Map param){
        Assert.notNull(param,"参数为空");
        return orgDao.select(param);
    }
}
